import request from '@/utils/request'

export const searchPointList = (Query) => {
  return request({
    method: 'GET',
    url: '/api/vm-service/node/search',
    params: Query
  })
}

export const removePoint = (id) => {
  return request({
    method: 'DELETE',
    url: '/api/vm-service/node/' + id
  })
}

export const addPoint = (data) => {
  return request({
    method: 'post',
    url: '/api/vm-service/node',
    data
  })
}

export const getbusinessType = (params) => {
  return request({
    method: 'get',
    url: '/api/vm-service/businessType',
    params
  })
}

export const changePoint = (data, id) => {
  return request({
    method: 'put',
    url: '/api/vm-service/node/' + id,
    data
  })
}

export const pointSee = (id) => {
  return request({
    method: 'get',
    url: '/api/vm-service/node/vmList/' + id
  })
}

export const searchPoint = (params) => {
  return request({
    method: 'get',
    url: '/api/vm-service/node/search',
    params
  })
}
